package com.kujawnode.mapper;

import com.kujawnode.commons.DataScope;
import com.kujawnode.model.TUser;
import com.kujawnode.model.TUserVO;
import com.kujawnode.query.BaseQuery;

import java.util.List;

public interface TUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    TUser selectByLoginAct(String username);

    @DataScope(tableField = "id", tableAlias = "tu")
    List<TUser> selectUserByPage(BaseQuery query);

    TUserVO selectUserDetailById(Integer id);

    int deleteByIds(List<Integer> ids);

    List<TUser> selectOwner();
}